pp108 : tooltip Property

tooltip Property


String that specifies the text / HTML that can serve as a tool tip on the field.

Syntax

HTML

<ELEMENT id=elementID tooltip=sTip...>...</ELEMENT>

Scripting

elementID.tooltip [ =sTip ]


Parameters

Parameter

Description

sTip

String that denotes the text / HTML that can be used as a tool tip on the field.


Remarks


Thetooltipproperty can be used as a substitute to thetitleproperty of Microsoft, since this property supports HTML tool tips. An empty tooltip removes the tooltip from the field.

The property is NOT supported forselectandoptiontags.

This property can be used without declaring thefieldTypeproperty.

Example


The following example shows how thetooltipproperty can be used to set the tip for various fields.

//validate definition inside the BODY
 <div cordysType="wcp.library.util.Validate" id="validate"></div>
//INPUT box with fieldType date
<input type="text" fieldType="date" displayFormat="DD-MM-YYYY" tooltip="Display format is MM-DD-YYYY">
//INPUT box with fieldType amount
<input type="text" fieldType="amount" displayFormat="locale" tooltip="Enter only <b>amount</b> fields">

See Also


validate